<template>
    <div>
      <h1>{{count}}</h1>
      <button @click="changeCount">累加count</button>
    </div>
</template>

<script lang="ts">
import { defineComponent } from "vue";

export default defineComponent({
  name: "About",
  data() {
    return {
      count:0
    }
  },
  methods:{
    changeCount(){
      this.count ++
    }
  }

});
</script>

<script setup lang="ts">
  
</script>